package com.wzy.oa_sys.model.response.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Id;
import java.util.List;

@Data
@Builder
public class DeptResp implements java.io.Serializable {
    @JsonProperty("id")
    private long id;
    @JsonProperty("deptname")
    private String deptname;
    @JsonProperty("address")
    private String address;
    @JsonProperty("tel")
    private String tel;
    @JsonProperty("email")
    private String email;
    @JsonProperty("admin")
    private String admin;
    /**
     * 父级部门
     */
    @JsonProperty("father")
    private String father;
    @JsonProperty("number")
    private Integer number;
    @JsonProperty("hc")
    private Integer hc;
    @JsonProperty("children")
    private List<DeptResp> children; // 用于存储子部门

}
